package com.wei.czz.framework.blog.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import com.wei.czz.common.tool.BaseEntity;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2022-03-01 22:34:26
 * className: BlogStatsFlowEntity
 * version: 1.0
 * description:
 * 	博客统计流水表
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_blog_stats_flow")
public class BlogStatsFlowEntity extends BaseEntity {

	/**
	 * 博客统计流水主键
	 */
	@TableId
	private Long statsFlowId;
	/**
	 * 博客id
	 */
	private Long blogId;
	/**
	 * 统计类型[0-浏览次数 1-点赞数 2-收藏数 3-评论数]
	 */
	private Integer type;
	/**
	 * 数值类型[0-日 1-月 2-年]
	 */
	private Integer valueType;
	/**
	 * 具体数值
	 */
	private Integer num;
	/**
	 * 统计开始时间
	 */
	private Date startTime;
	/**
	 * 统计结束时间
	 */
	private Date endTime;
	/**
	 * 创建时间
	 */
	private Date createTime;

	public BlogStatsFlowEntity() {
	}

	public BlogStatsFlowEntity(Long blogId, Integer type, Integer valueType, Integer num, Date startTime, Date endTime, Date createTime) {
		this.blogId = blogId;
		this.type = type;
		this.valueType = valueType;
		this.num = num;
		this.startTime = startTime;
		this.endTime = endTime;
		this.createTime = createTime;
	}
}
